<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dbPoll_Application.ViewModels.EditParticipantsViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	EditList</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <script type="text/javascript" src="../../Scripts/EditParticipant.js"></script>
<div class="pageHeadingContainer"><h2 class="pageHeading">Edit Participant List - <%=Model.PollName %></h2></div>
<div id="contentContainer">
<p><%= Html.ActionLink("Polls > ", "Index", "Poll", null, new { @class = "breadcrumb" })%><%= Html.ActionLink(Model.PollName, "Questions", "Poll", new { pollID = Model.PollID, pollName = Model.PollName }, new { @class = "breadcrumb" })%> >
   <%= Html.ActionLink("Participant List", "Participants", "Poll", new { pollId = Model.PollID }, new { @class = "breadcrumb" })%> > Edit List</p>
    <div id="pageMenuContainer">
        <ul id="pageMenu">
            <li><%= Html.ActionLink("Details", "Questions", "Poll", new { pollID = Model.PollID },null) %></li>
            <li><%= Html.ActionLink("Run", "SetSession","Poll", new { pollID = Model.PollID },null) %></li>
            <li><%= Html.ActionLink("Test", "Test","Poll", new { pollID = Model.PollID },null) %></li>
            <li><%= Html.ActionLink("Reports", "Reports","Poll", new { pollID = Model.PollID },null) %></li>
            <li><%= Html.ActionLink("Manage Hierarchy", "EntityHierarchy", "Poll", new { pollID = Model.PollID },null) %></li>
        </ul>
    </div>
<p><label for="addfield">Add Field:</label> <input name="addfield" type="text" id="addfield"/>
<button id="adding" onclick="addField()">Add</button></p>
<div><%if (Model.isGroup==false) Html.RenderPartial("Individual", Model);
                             else Html.RenderPartial("Group", Model); %>
</div>
</div>

</asp:Content>
